package org.hengguan.api.contest.vo;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Collections;
import java.util.List;

@Data
@Accessors(chain = true)
@ApiModel(value = "PageVo对象", description = "全局分页对象")
public class PageVo<T> {

//	@Range(min = 1,message = "页码最小值=1",groups = { SelectGroup.class })
	@ApiModelProperty(value = "页码", example = "1", required = true)
	private Integer pageNum = 1;
	
//	@Range(min = 1,message = "页行最小值=1",groups = { SelectGroup.class })
	@ApiModelProperty(value = "页行", example = "15", required = true)
	private Integer pageSize = 15;
	
	@ApiModelProperty(value = "数据列表")
	private List<T> records = Collections.emptyList(); 
	
	@ApiModelProperty(value = "总数", example = "0")
	private long total = 0;
}
